package com.site.wisdom_construction.service.personnelModule;

import com.site.wisdom_construction.dao.personnelModule.BlacklistWorkersDao;
import com.site.wisdom_construction.entity.personnelModule.BlacklistWorkers;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Author daiyifei
 * @Date 2022/1/7
 * @Description
 */
@Service
public class BlacklistWorkersService implements BlacklistWorkersDao {
    @Autowired
    private BlacklistWorkersDao blacklistWorkersDao;

    @Override
    public int insertBlacklistWorkers(Map map) {
        return blacklistWorkersDao.insertBlacklistWorkers(map);
    }

    @Override
    public int deleteBlacklistWorkers(Map map) {
        return blacklistWorkersDao.deleteBlacklistWorkers(map);
    }

    @Override
    public int updateBlacklistWorkers(Map map) {
        return blacklistWorkersDao.updateBlacklistWorkers(map);
    }

    @Override
    public List<BlacklistWorkers> findBlacklistWorkersByPage(Map map) {
        return blacklistWorkersDao.findBlacklistWorkersByPage(map);
    }

    @Override
    public long Total(Map map) {
        return blacklistWorkersDao.Total(map);
    }

    @Override
    public List<BlacklistWorkers> findBlacklistWorkersByWorkerCard(Map map) {
        return blacklistWorkersDao.findBlacklistWorkersByWorkerCard(map);
    }

    @Override
    public BlacklistWorkers findBlacklistWorkersById(Map map) {
        return blacklistWorkersDao.findBlacklistWorkersById(map);
    }
}
